package top.cdmrx.cornweb.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Mr.陈 time on 2021/9/14 | 12:06
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DemoData {

    //设置表头名称
    //index=0表示读写操作展示的第一列
    @ExcelProperty(value = "学生编号",index = 0)
    private Integer sno;

    @ExcelProperty(value = "学生姓名",index = 1)
    private String sname;
}
